package sixth;
class Person{
    String name;
    public Person(){
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Student extends Person{
String  school;
   public Student(){
       super(); //加不加这句效果都是一样的
   }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
public class 子类构造方法中的super方法 {

}
